import paddle
from paddlespeech.cli.asr.infer import ASRExecutor

asr_executor = ASRExecutor()
#asr_executor(
    # model='conformer_talcs',
    # lang='zh_en',
    # sample_rate=16000,
    # config=None, 
    # ckpt_path=None,
    # audio_file='./ch_zh_mix.wav',
    # codeswitch=True,
    # force_yes=False,
    # device=paddle.get_device())

# asrwavs return text
def asrwavs( names:list )->str:	
	res = ''
	for i in range(len(names)):
		text = asr_executor( audio_file = names[i], lang='zh')
		res = f'{res}{text},'
	return res
